package edu.xhu.api.user.fallback;

import edu.xhu.api.user.UserCrudClient;
import edu.xhu.model.common.dtos.ResponseResult;
import edu.xhu.model.common.enums.AppHttpCodeEnum;
import org.springframework.stereotype.Component;

@Component
public class UserCrudClientFallback implements UserCrudClient {
    /**
     * 获取全部用户id
     *
     * @return
     */
    @Override
    public ResponseResult<?> getAllUserIds() {
        return ResponseResult.errorResult(AppHttpCodeEnum.SERVER_ERROR, "获取全部用户id失败");
    }
}
